package com.stone.databinding.data;

import androidx.databinding.ObservableInt;

public class ObservableFieldProfile {
    private String firstName;
    private String lastName;
    private ObservableInt likesNum;

    public ObservableFieldProfile() {}

    public ObservableFieldProfile(String firstName, String lastName, ObservableInt likesNum) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.likesNum = likesNum;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public ObservableInt getLikesNum() {
        return likesNum;
    }

    public void setLikesNum(int likesNum) {
        this.likesNum.set(likesNum);
    }

    @Override
    public String toString() {
        return "ObservableFieldProfile{" +
                "firstName='" + firstName + '\'' +
                ", lastName='" + lastName + '\'' +
                ", likesNum=" + likesNum +
                '}';
    }
}
